Main Page | Class List | Class Members

BustaGraphicsSprites Class Reference

contains methods for loading and returning sprites for BustaGraphics More...

#include <BustaGraphicsSprites.h>

List of all members.

Public Member Functions

 BustaGraphicsSprites ()
 Loads all the sprites in the game.
SDL_Surface * getFoodSprite (BustaModelFoodPiece *food_piece)
 Returns the propper sprite for a food piece.
SDL_Surface * getBMPFont ()
 Returns a bitmap font used by Sfont.
SDL_Surface * getChefSprites (ANIM_CHEF_TYPES anim_type, int frame)
 Returns the right chef sprite.
SDL_Surface * getCustomerSprites (ANIM_CUSTOMER_STATES anim_type, int frame)
 Returns the right chef sprite.
SDL_Surface * getCursorSprites ()
 returns a sprite for the cursor
SDL_Surface * getSwapCursorSprites ()
 returns a sprite for the swap cursor
SDL_Surface * getTipJarSprite (int percent_full)
 returns a sprite of the tip jar based on the percent fullness


Detailed Description

contains methods for loading and returning sprites for BustaGraphics


Member Function Documentation

SDL_Surface* BustaGraphicsSprites.getBMPFont  ) 
 

Returns a bitmap font used by Sfont.

Returns:
a surface for SFont

SDL_Surface * BustaGraphicsSprites::getChefSprites ANIM_CHEF_TYPES  anim_type,
int  frame
 

Returns the right chef sprite.

Parameters:
anim_type the type of animation
frame which frame of the animation
Returns:
sprite for the chef

SDL_Surface* BustaGraphicsSprites.getCursorSprites  ) 
 

returns a sprite for the cursor

Returns:
sprite for the cursor

SDL_Surface * BustaGraphicsSprites::getCustomerSprites ANIM_CUSTOMER_STATES  anim_type,
int  frame
 

Returns the right chef sprite.

Parameters:
anim_type the type of animation
frame which frame of the animation
Returns:
sprite for the chef

SDL_Surface * BustaGraphicsSprites::getFoodSprite BustaModelFoodPiece *  food_piece  ) 
 

Returns the propper sprite for a food piece.

Parameters:
food_piece the food piece to get sprite for
Returns:
sprite for a food type

SDL_Surface* BustaGraphicsSprites.getSwapCursorSprites  ) 
 

returns a sprite for the swap cursor

Returns:
sprite for the swap cursor

SDL_Surface * BustaGraphicsSprites::getTipJarSprite int  percent_full  ) 
 

returns a sprite of the tip jar based on the percent fullness

Parameters:
percent_full 100 for a full jar and 50 for a half-full jar
Returns:
sprite for tip jar


Generated on Tue Aug 2 22:03:11 2005 for BustaSandwich Graphics by  doxygen 1.4.2-20050421